#ifndef __TRACE_H_INCLUDED__
#define __TRACE_H_INCLUDED__

#include <stdio.h>

#define TRACE_ERRORS
#define TRACE_DEBUGS
//#define TRACE_LOCKS

#ifdef TRACE_ERRORS
#define TRACE_ERR(x...) fprintf(stderr, x)
#else
#define TRACE_ERR(x...)
#endif

#ifdef TRACE_DEBUGS
#define TRACE_DBG(x...) fprintf(stdout, x)
#else
#define TRACE_DBG(x...)
#endif

#ifdef TRACE_LOCKS
#define TRACE_LOCK(x...) fprintf(stdout, x)
#else
#define TRACE_LOCK(x...)
#endif

#endif
